<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2020-06-11
 * Time: 09:22
 * 房间基础信息表 - 关联基础信息主表以及房间主表
 */

namespace app\api\model;


use think\model\concern\SoftDelete;

class HotelRoomBasis extends BaseModel
{
    protected $hidden = [
        'id', 'basis_id', 'hotel_room_id', 'create_time', 'update_time', 'delete_time'
    ];

    use SoftDelete;

    // 关联的基础信息
    public function basis()
    {
        return $this->belongsTo('Basis','basis_id');
    }
}